package com.kyh.sys.entity;

import java.util.Date;

import javax.persistence.Table;

import com.kyh.annotation.Model;
import com.kyh.entity.base.BaseEntity;


/**
 */
@Table(name="sys_adminlog", catalog="adminlogid")
public class Adminlog extends BaseEntity<Adminlog> {

	private Long adminlogid; // 主键ID
	@Model(nameTable="adminlogip")
	private String adminlogip; // 操作主机IP
	@Model(nameTable="adminlogname")
	private String adminlogname; // 操作名称
	@Model(nameTable="adminid")
	private Long adminid; // 操作者adminid
	@Model(nameTable="status")
	private Integer status; // 
	@Model(nameTable="createTime",type=Model.TYPE.DATE, format="yyyy-MM-dd HH:mm:ss")
	private Date createTime; // 
	@Model(nameTable="updateTime",type=Model.TYPE.DATE, format="yyyy-MM-dd HH:mm:ss")
	private Date updateTime; // 
    
    public Long getAdminlogid() {
        return adminlogid;
    }
    public Adminlog setAdminlogid(Long adminlogid) {
        this.adminlogid = adminlogid;
		return this;
    }
    public String getAdminlogip() {
        return adminlogip;
    }
    public Adminlog setAdminlogip(String adminlogip) {
        this.adminlogip = adminlogip;
		return this;
    }
    public String getAdminlogname() {
        return adminlogname;
    }
    public Adminlog setAdminlogname(String adminlogname) {
        this.adminlogname = adminlogname;
		return this;
    }
    public Long getAdminid() {
        return adminid;
    }
    public Adminlog setAdminid(Long adminid) {
        this.adminid = adminid;
		return this;
    }
    public Integer getStatus() {
        return status;
    }
    public Adminlog setStatus(Integer status) {
        this.status = status;
		return this;
    }
    public Date getCreateTime() {
        return createTime;
    }
    public Adminlog setCreateTime(Date createTime) {
        this.createTime = createTime;
		return this;
    }
    public Date getUpdateTime() {
        return updateTime;
    }
    public Adminlog setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
		return this;
    }

	public static Adminlog adminlog(
		    String adminlogip,
		    String adminlogname,
		    Long adminid
			) {
		Adminlog entity = new Adminlog();
		entity.setAdminlogip(adminlogip);
		entity.setAdminlogname(adminlogname);
		entity.setAdminid(adminid);
		return entity;
	}
}